<%
            String log = (String) session.getAttribute("log");
//System.err.println(log);
            if ("A".equals(log) || "O".equals(log)) {
                out.println("<form action='LoginS?opcion=out' method='post'>");

                out.println("<table width='270' border='0' height='90' background='imagenes/bg_log.png'>");

                out.println("<tr class='hora2'>");
                out.println("<td width='20'>&nbsp;</td>");
                out.println("<td width='65'>User:</td>");
                out.println("<td width='165' class='log'>" + session.getAttribute("user").toString() + "</td>");
                out.println("<td width='20'>&nbsp;</td>");
                out.println("</tr>");

                out.println("<tr class='hora2'>");
                out.println("<td>&nbsp;</td>");
                out.println("<td>Logueado:</td>");
                out.println("<td class='log'>" + session.getAttribute("hora").toString() + "</td>");
                out.println("<td>&nbsp;</td>");
                out.println("</tr>");

                out.println("<tr>");
                out.println("<td height='32'>&nbsp;</td>");
                out.println("<td colspan='2' align='center'><input type='submit' value='Salir' /></td>");
                out.println("<td>&nbsp;</td>");
                out.println("</tr>");

                out.println("</table>");
                out.println("</form>");

            } else {
                out.println("<form name='login' action='LoginS?opcion=in' method='post'>");

                out.println("<table width='270' border='0' height='90' background='imagenes/bg_log.png'>");

                out.println("<tr class='hora2'>");
                out.println("<td width='20'>&nbsp;</td>");
                out.println("<td width='65'>User:</td>");
                out.println("<td width='165'><input type='text' name='log_user' /></td>");
                out.println("<td width='20'>&nbsp;</td>");
                out.println("</tr>");

                out.println("<tr class='hora2'>");
                out.println("<td>&nbsp;</td>");
                out.println("<td>Pass:</td>");
                out.println("<td><input type='password' name='log_pass' /></td>");
                out.println("<td>&nbsp;</td>");
                out.println("</tr>");

                out.println("<tr>");
                out.println("<td height='32'>&nbsp;</td>");
                out.println("<td colspan='2' align='center'><input type='submit' value='Acceder' /></td>");
                out.println("<td>&nbsp;</td>");
                out.println("</tr>");

                out.println("</table>");
                out.println("</form>");
            }
%>
<%--Si aun no se logea:
<form name='f_hom_log' action='LoginS' method='post'>
    <table width='270' border='0' height='90' background='imagenes/bg_log.png'>
        <tr>
            <td width='20'>&nbsp;</td>
            <td width='65'>User:</td>
            <td width='165'><input type='text' name='log_user' /></td>
            <td width='20'>&nbsp;</td>
        </tr>
        <tr>
            <td>&nbsp;</td>
            <td>Pass:</td>
            <td><input type='password' name='log_pass' /></td>
            <td>&nbsp;</td>
        </tr>
        <tr>
            <td height='32'>&nbsp;</td>
            <td colspan='2' align='center'><input type='submit' value='Acceder' /></td>
            <td>&nbsp;</td>
        </tr>
    </table>
</form>
--%>

<%--Si esta logeado:
<form action='index.jsp' method='post'>
                        <table width='270' border='0' height='90' background='imagenes/bg_log.png'>
                            <tr>
                                <td width='20'>&nbsp;</td>
                                <td width='65'>User:</td>
                                <td width='165'>bdiaz</td>
                                <td width='20'>&nbsp;</td>
                            </tr>
                            <tr>
                                <td>&nbsp;</td>
                                <td>Last Log:</td>
                                <td>01/06/10 - 10:59 a.m.</td>
                                <td>&nbsp;</td>
                            </tr>
                            <tr>
                                <td height='32'>&nbsp;</td>
                                <td colspan='2' align='center'><input type='submit' value='Salir' /></td>
                                <td>&nbsp;</td>
                            </tr>
                        </table>
</form>
--%>